﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001169 RID: 4457
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SetIsDisplayAvatarInfoCsReq : IMessage<SetIsDisplayAvatarInfoCsReq>, IMessage, IEquatable<SetIsDisplayAvatarInfoCsReq>, IDeepCloneable<SetIsDisplayAvatarInfoCsReq>, IBufferMessage
	{
		// Token: 0x17003866 RID: 14438
		// (get) Token: 0x0600C779 RID: 51065 RVA: 0x0021A078 File Offset: 0x00218278
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SetIsDisplayAvatarInfoCsReq> Parser
		{
			get
			{
				return SetIsDisplayAvatarInfoCsReq._parser;
			}
		}

		// Token: 0x17003867 RID: 14439
		// (get) Token: 0x0600C77A RID: 51066 RVA: 0x0021A07F File Offset: 0x0021827F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SetIsDisplayAvatarInfoCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003868 RID: 14440
		// (get) Token: 0x0600C77B RID: 51067 RVA: 0x0021A091 File Offset: 0x00218291
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SetIsDisplayAvatarInfoCsReq.Descriptor;
			}
		}

		// Token: 0x0600C77C RID: 51068 RVA: 0x0021A098 File Offset: 0x00218298
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetIsDisplayAvatarInfoCsReq()
		{
		}

		// Token: 0x0600C77D RID: 51069 RVA: 0x0021A0A0 File Offset: 0x002182A0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetIsDisplayAvatarInfoCsReq(SetIsDisplayAvatarInfoCsReq other) : this()
		{
			this.isDisplay_ = other.isDisplay_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600C77E RID: 51070 RVA: 0x0021A0C5 File Offset: 0x002182C5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetIsDisplayAvatarInfoCsReq Clone()
		{
			return new SetIsDisplayAvatarInfoCsReq(this);
		}

		// Token: 0x17003869 RID: 14441
		// (get) Token: 0x0600C77F RID: 51071 RVA: 0x0021A0CD File Offset: 0x002182CD
		// (set) Token: 0x0600C780 RID: 51072 RVA: 0x0021A0D5 File Offset: 0x002182D5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool IsDisplay
		{
			get
			{
				return this.isDisplay_;
			}
			set
			{
				this.isDisplay_ = value;
			}
		}

		// Token: 0x0600C781 RID: 51073 RVA: 0x0021A0DE File Offset: 0x002182DE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SetIsDisplayAvatarInfoCsReq);
		}

		// Token: 0x0600C782 RID: 51074 RVA: 0x0021A0EC File Offset: 0x002182EC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SetIsDisplayAvatarInfoCsReq other)
		{
			return other != null && (other == this || (this.IsDisplay == other.IsDisplay && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600C783 RID: 51075 RVA: 0x0021A11C File Offset: 0x0021831C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.IsDisplay)
			{
				num ^= this.IsDisplay.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600C784 RID: 51076 RVA: 0x0021A15B File Offset: 0x0021835B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600C785 RID: 51077 RVA: 0x0021A163 File Offset: 0x00218363
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600C786 RID: 51078 RVA: 0x0021A16C File Offset: 0x0021836C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.IsDisplay)
			{
				output.WriteRawTag(80);
				output.WriteBool(this.IsDisplay);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600C787 RID: 51079 RVA: 0x0021A1A0 File Offset: 0x002183A0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.IsDisplay)
			{
				num += 2;
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600C788 RID: 51080 RVA: 0x0021A1D2 File Offset: 0x002183D2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SetIsDisplayAvatarInfoCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.IsDisplay)
			{
				this.IsDisplay = other.IsDisplay;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600C789 RID: 51081 RVA: 0x0021A203 File Offset: 0x00218403
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600C78A RID: 51082 RVA: 0x0021A20C File Offset: 0x0021840C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 80U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.IsDisplay = input.ReadBool();
				}
			}
		}

		// Token: 0x0400502C RID: 20524
		private static readonly MessageParser<SetIsDisplayAvatarInfoCsReq> _parser = new MessageParser<SetIsDisplayAvatarInfoCsReq>(() => new SetIsDisplayAvatarInfoCsReq());

		// Token: 0x0400502D RID: 20525
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400502E RID: 20526
		public const int IsDisplayFieldNumber = 10;

		// Token: 0x0400502F RID: 20527
		private bool isDisplay_;
	}
}
